export namespace SystemSpace {
  // 能效数据分页
  export interface LinePageQuery {
    pageIndex: number
    pageSize: number
    startDay?: string
    endDay?: string
    dateRange?: string[]
  }
  // 能效数据分页
  export interface LinePage {
    id: number
    factoryId: number
    lineId: number
    lineName: string
    code: string
    prodName: string
    personCharge: string
    version: string
    materialNo: string
    orderCnt: number
    produceCnt: number
    powerCnt: number
    cleanLevel: string
    cleanACnt: number
    cleanATimes: number
    cleanBCnt: number
    cleanBTimes: number
    cleanCCnt: number
    cleanCTimes: number
    startRate: number
    updateBy: string
    updateTime: string
  }
  // 峰平谷时段统计-总计
  export interface PeakPlatValleyTotalQuery {
    factoryId?: number
    lineId?: number
    dataTime: string
    timeType: number //2-月；3-日；4-时；
  }
  export interface PeakPlatValleyTotal {
    cost: number
    costRatio: number
    type: number
    value: number
    valueRatio: number
  }
  // 峰平谷时段统计-耗电量，电费统计
  export interface PeakPlatValleyCostStatQuery {
    factoryId?: number
    lineId?: number
    dataTime: string
    timeType: number //2-月；3-日；4-时；
  }
  export interface PeakPlatValleyCostStat {
    costList: Array<{
      dataTime: string
      flatValue: number
      peakValue: number
      unit: string
      valleyValue: number
    }>
    valueList: Array<{
      dataTime: string
      flatValue: number
      peakValue: number
      unit: string
      valleyValue: number
    }>
  }
  // 峰平谷分时统计-电量统计
  export interface PeakPlatValleyDleStatQuery {
    factoryId?: number
    lineId?: number
    dataTime: string
    timeType: number //2-月；3-日；4-时；
  }
  export interface PeakPlatValleyDleStat {
    dataTime: string
    type: number
    unit: string
    value: number
  }
  // 峰平谷分时统计-峰平谷占比
  export interface PeakPlatValleyRatioStatQuery {
    factoryId?: number
    lineId?: number
    dataTime: string
    timeType: number //2-月；3-日；4-时；
  }
  export interface PeakPlatValleyRatioStat {
    flatValue: number
    peakValue: number
    unit: string
    valleyValue: number
  }
}
